#include "individual.h"

#include "Noeud.h"

static long _id_generator = 0L;

Individual::Individual(const Member& root)
    : m_id(++_id_generator)
    , m_root_member(root)
{

}

long Individual::id(void) const
{
    return m_id;
}

Member::Member(const btRigidBody &main_body)
    : m_body(main_body)
    , m_connections()
{

}

Member::~Member(void)
{

}

void Member::connectTo(const Connection &connection)
{
    m_connections.push_back(connection);
}

Connection::Connection(
        btTypedConstraint *connection_constraint,
        Member *connected_member)
    : m_constraint(connection_constraint)
    , m_member(connected_member)
{

}

Connection::~Connection(void)
{

}
